1
/************************************* Module Header **************************************\
2 * Module Name: OptionPageGrid.cs
3 * Project: CSVSPackageState
4 * Copyright (c) Microsoft Corporation.
6 * The Visual Studio package state sample demostrate the state persisting for
7 * application options and show object states in properties window.
9 * The sample doesn't include the state management for solution and project,
10 * which will be included in project package sample.
12 * This source is subject to the Microsoft Public License.
13 * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
14 * All other rights reserved.
17 * * 9/6/2009 1:00 PM Hongye Sun Created
18 \******************************************************************************************/
20 using System
.Collections
.Generic
;
23 using Microsoft
.VisualStudio
.Shell
;
24 using System
.Runtime
.InteropServices
;
25 using System
.ComponentModel
;
27 namespace AllInOne
.CSVSPackageState
29 // ClassInterface attribute creates a COM dual interface
30 // that lets Visual Studio Automation use GetAutomationObject
31 // to access the public members of the class programmatically.
32 [ClassInterface(ClassInterfaceType
.AutoDual
)]
33 public class OptionPageGrid
: DialogPage
35 private int optionValue
= 256;
38 /// This is the property which will be shown in the tool
39 /// options page. Its user settings will be persisted
40 /// in the user registry settings.
42 [Category("CSVSPakcageState Category")]
43 [DisplayName("Option Interger Property")]
44 [Description("An interger property displayed in tools option page")]
45 public int OptionInteger
47 get { return optionValue; }
48 set { optionValue = value; }